package com.x.erp.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 用户反馈记录表
 * 
 * @author pansong
 */
@MappingTable(tableName = "ERP_FEEDBACK")
public class Feedback extends BaseObject {

	private static final long serialVersionUID = -6879790819200067628L;

	@MappingColumn(columnName = "FEEDBACK_ID", columnPk = true, columnLength = 32)
	private String feedbackId;// 反馈ID

	@MappingColumn(columnName = "FEEDBACK_CONTENT")
	private String feedbackContent;// 反馈内容

	@MappingColumn(columnName = "FEEDBACK_IMAGE")
	private String feedbackImage;// 反馈图片

	@MappingColumn(columnName = "USER_ID")
	private String userId;// 操作用户ID

	@MappingTable(tableName = "ERP_USER")
	private User user;// 操作用户信息

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "FEEDBACK_CREATE_TIME")
	private Date feedbackCreateTime;// 反馈时间

	public String getFeedbackId() {
		return feedbackId;
	}

	public void setFeedbackId(String feedbackId) {
		this.feedbackId = feedbackId;
	}

	public String getFeedbackContent() {
		return feedbackContent;
	}

	public void setFeedbackContent(String feedbackContent) {
		this.feedbackContent = feedbackContent;
	}

	public String getFeedbackImage() {
		return feedbackImage;
	}

	public void setFeedbackImage(String feedbackImage) {
		this.feedbackImage = feedbackImage;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getFeedbackCreateTime() {
		return feedbackCreateTime;
	}

	public void setFeedbackCreateTime(Date feedbackCreateTime) {
		this.feedbackCreateTime = feedbackCreateTime;
	}
}
